﻿@model Guline.SupportCMS.Models.Object.Category

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/v1_admin_layout.cshtml";
  
}



@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Category</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Order)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Order)
            @Html.ValidationMessageFor(model => model.Order)
        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.Enable)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Enable)
            @Html.ValidationMessageFor(model => model.Enable)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ParentID, "Parent")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ParentID", String.Empty)
            @Html.ValidationMessageFor(model => model.ParentID)
        </div>

        <p>
            <input type="submit" value="Save" style="margin-top:20px;" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
